Base URL
https://fakeapi.in/api/todosAPI Endpoints
GET
/api/todosGet all todos
GET
/api/todos/1Get todo by ID
POST
/api/todosCreate todo
PUT
/api/todos/1Update todo
DELETE
/api/todos/1Delete todo
Example Usage
// Get all todos
fetch('https://fakeapi.in/todos')
.then(response => response.json())
.then(todos => console.log(todos));
// Create a new todo
fetch('https://fakeapi.in/todos', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'New Task',
priority: 'medium'
})
})
.then(response => response.json())
.then(todo => console.log(todo));Example Response
{
"id": 1,
"task": "aufero credo spoliatio cerno",
"completed": false,
"dueDate": "2025-10-20T01:47:40.504Z",
"priority": "Medium",
"assignedTo": "Marjorie Brekke II"
}
Quick Actions
API Status
StatusOperational
Rate Limit1000 requests/hour
Response FormatJSON
